package org.tru42.signal.processors.converter;

import org.tru42.signal.lang.NamedBitSet;
import org.tru42.signal.lang.SObject;

public class BitSetToNumber extends SObject {
	
	@org.tru42.signal.lang.annotation.Signal
	public void valueChanged(long timestamp, Number num) {
		trigger("valueChanged", timestamp, num);
	}
	
	@org.tru42.signal.lang.annotation.Sink
	public void setValue(long timestamp, NamedBitSet bitSet) {
		valueChanged(timestamp, bitSet.numberValue());
	}
	
}
